<?php
/**
 *
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       Cake.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */

$cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php echo $title_for_layout; ?>
	</title>
	<?php
		echo $this->Html->meta('icon');

		echo $this->Html->css('style');
		echo $this->Html->css('bootstrap.css');
		echo $this->Html->css('slide');
		echo $this->Html->css('menu');
		//echo $this->Html->css('reset');

		echo $this->fetch('meta');
		//echo $this->fetch('title_for_layout');
		echo $this->fetch('css');
		echo $this->fetch('script');

		
		echo $this->Html->script('jquery-1.7.1.min.js');
		echo $this->Html->script('slide.js');
		//echo $this->Html->script('menu.js');
	?>
</head>
<body>
	<div id="copyright" style="display:none;">Copyright &copy; 2012 <a href="http://apycom.com/">Apycom jQuery Menus</a></div>
	<div id="container" class="container">
		<div class="row-fluid">
			<div id="header" class="span12 header" style="background: url('<?php echo $base_url; ?>/app/webroot/upload/<?php echo $header_image; ?>'); background-size: 940px 150px;">
				<?php
					echo $logo; 
					echo $site_name
				?>
				<div class="span2 header_right">
					<div class="login">
						<?php
							echo $log_link;
						?>
					</div>
				</div>
			</div>
		</div>
		<div class="row-fluid">
			<div id="content" class="span12 content" style="min-height:450px;">
				<div class="menu">
					<?php
						print $menus;
					?>
				</div>
				<div style="clear:both;"></div>
				<?php echo $this->Session->flash(); ?>

				<?php echo $this->fetch('content'); ?>
			</div>
		</div>
		<div class="clear:both;"></div>
		<div class="row-fluid">
			<div id="footer" class="footer">
			<?php
				foreach($footer_menus as $footer_menu){
					echo '<a href="'.$base_url.'/Posts/index/'.$footer_menu['menus']['title'].'">'.$footer_menu['menus']['title'].'</a>&nbsp;';
				}
			?>
			</div>
		</div>
		<div class="clear:both;"></div>
	</div>
	<?php echo $this->element('sql_dump'); ?>
</body>
</html>
